package w10;

public class Lt3 {
	public static void main(String[] args) {
		// 字符串转数字
		String a = "123";
//		System.out.println(a * 2);
		int v = Integer.parseInt(a);
		System.out.println(v * 2);
		double dv = Double.parseDouble(a);
		System.out.println(dv);
		
		// 数字转字符串
		String aa1 = String.valueOf(v);
		String aa2 = String.valueOf(dv);
		String aa3 = "" + v;
		System.out.println(aa1);
		System.out.println(aa2);
	}

}
